﻿using System;
using System.Collections.Generic;
using System.Text;
using RTCCore;

namespace LibRTC.Core.MessageMap
{
    public class SimpleMessageHandler : IMessageHandler
    {
        protected RTC_EVENT _rtcEvent;
        protected string _name;

        public SimpleMessageHandler() {
            _rtcEvent = RTC_EVENT.RTCE_CLIENT;
            _name = "SimpleMessageHandler";
        }

        public string Name() {
            return _name;
        }

        virtual public RTC_EVENT Event() {
            return _rtcEvent;
        }

        virtual public void RegisterHandler(IMessageHandler handler) {
            throw new NotImplementedException();
        }

        virtual public void Process(RTC_EVENT rtcEventType, object rtcEvent) {
            // user should extend this class to implement this Process()
            throw new NotImplementedException();
        }
    }
}
